<%@ page import="com.foreknow.model.Guestbook" %><%--
  Created by IntelliJ IDEA.
  User: Ythhh
  Date: 2021/8/23
  Time: 21:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=utf-8" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
    <title>修改</title>
    <link href="https://cdn.jsdelivr.net/npm/@bootcss/v3.bootcss.com@1.0.12/dist/css/bootstrap.min.css"
          rel="stylesheet">
</head>
<body>
<%--    <form class="form-horizontal" action="${contextPath}/user/manager?id=${guestBook.id}&gb=${guestBook}&q=update" method="post">--%>
<%--        Name :<input name="name" class="form-control" type="text" placeholder="Name" value="${guestBook.name}"><br>--%>
<%--        Phone :<input name="phone" type="text" placeholder="Phone" value="${guestBook.phone}"><br>--%>
<%--        Email :<input name="email" type="text" placeholder="Email" value="${guestBook.email}"><br>--%>
<%--        Title :<input name="title" type="text" placeholder="Title" value="${guestBook.title}"><br>--%>
<%--        Content :<input name="content" type="text" placeholder="Content" value="${guestBook.content}"><br>--%>
<%--        CreatedTime :<input name="createdTime" placeholder="CreatedTime" value="${guestBook.createdTime}"><br>--%>
<%--        <button type="submit" class="btn btn-primary btn-lg">Commit</button>--%>
<%--        <button type="reset" class="btn btn-default btn-lg">Clear</button>--%>
<%--    </form>--%>


    <form class="form-horizontal" action="${contextPath}/user/manager?id=${guestBook.id}&gb=${guestBook}&q=update" method="post">
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">Name</label>
            <div class="col-sm-10">
                <input type="text" name="name" class="form-control" id="inputEmail3" value="${guestBook.name}" placeholder="Name">
            </div>
        </div>
        <div class="form-group">
            <label for="phone" class="col-sm-2 control-label">Phone</label>
            <div class="col-sm-10">
                <input type="text" name="phone" class="form-control" id="phone" value="${guestBook.phone}" placeholder="Phone">
            </div>
        </div>

        <div class="form-group">
            <label for="email" class="col-sm-2 control-label">Email</label>
            <div class="col-sm-10">
                <input type="text" name="email" class="form-control" id="email" value="${guestBook.email}" placeholder="Email">
            </div>
        </div>

        <div class="form-group">
            <label for="title" class="col-sm-2 control-label">Title</label>
            <div class="col-sm-10">
                <input type="text" name="title" class="form-control" id="title" value="${guestBook.title}" placeholder="Title">
            </div>
        </div>

        <div class="form-group">
            <label for="content" class="col-sm-2 control-label">Content</label>
            <div class="col-sm-10">
                <input type="text" name="content" class="form-control" id="content"  value="${guestBook.content}" placeholder="Content">
            </div>
        </div>
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary btn-lg">Commit</button>
                <button type="reset" class="btn btn-default btn-lg">Clear</button>
            </div>
    </form>
</body>
</html>
